<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<script type="text/javascript" src="../bibliotheques/jquery.js"></script>
<script type="text/javascript" src="../bibliotheques/pause.js"></script>
<script type="text/javascript" src="../bibliotheques/jquery.blockUI.js.js"></script>
<script type="text/javascript" src="../bibliotheques/interface.js"></script>
<script type="text/javascript" src="../bibliotheques/firebug/firebugx.js"></script>
<script type="text/javascript" src="../jsGUIGuy/Misc.js"></script>
<script type="text/javascript" src="../jsGUIGuy/Settings.js"></script>
<script type="text/javascript" src="../jsGUIGuy/ServerInterface.js"></script>
<script type="text/javascript" src="../jsGUIGuy/User.js"></script>
<script type="text/javascript" src="../jsGUIGuy/PatternMapping.js"></script>
<script type="text/javascript" src="../jsGUIGuy/GUIAttributes.js"></script>
<script type="text/javascript" src="../jsGUIGuy/GUI.js"></script>
<script type="text/javascript" src="../jsGUIGuy/GUIList.js"></script>
<script type="text/javascript" src="../jsGUIGuy/GUIEvents.js"></script>
<script type="text/javascript" src="../jsGUIGuy/GUIApi.js"></script>
<script type="text/javascript" src="../jsGUIGuy/Init.js"></script>

</head>
<body>

<h2>Speed Test</h2>
<div id="log" style="font-family: arial; font-size:11px;">
</div>
<br><br>

<div class="patternContainer pattern_task">
  <div id="pattern_task_form" class="pattern_task_form" style="display:none;"><div>
      <form>
          <input type="hidden" data="unique_id" class="unique_id" name="unique_id">
          <input type="hidden" data="object_id" class="object_id" name="object_id">
          <input type="hidden" data="deleted" class="deleted" name="deleted">
          <input type="checkbox" data="Done" name="Done" dataType="Boolean" value="1" class="cbtodo Done" onChange="applyEditGUI(this,'form')">
          <input type="text" data="Name" name="Name" dataType="Text" class="todo_champ_form Name" onChange="applyEditGUI(this,'form')">
          <div class="detail_todo" style="font-style: italic">Cr&eacute;e le <span data="created_at" class="created_at"></span></div>
          <div class="detail_todo" style="font-style: italic">Termin&eacute;e le <span data="Done_date" class="Done_date"></span></div>
      </form></div>
  </div>	
</div>

<script type="text/javascript">

  defaultSettings = new GuiSettings();
  connectedUser = new User();
  GUIGuyApi = new GUIApi();
  autoLoad = false;
  var debut;
  var render;
  var fin;
  
  //Load data, list of objects, no remote source
	var tester;
	
	function DisplayMessage(text) {alert(text);}

$(document).ready(function() {
  
  debut = new Date();
  document.getElementById("log").innerHTML = "Debut : " + debut + "<br>";
  tester = new GUIList();
  tester.object_type='task';
  tester.setDataSource("speed_test_source_125.html?");
  
  tester.ready(function () {
        render = new Date();
        document.getElementById("log").innerHTML += "Render : " + render + "<br>";
        tester.goToView("form");
        
        fin = new Date();
        document.getElementById("log").innerHTML += "Fin : " + fin + "<br><br>";  
        document.getElementById("log").innerHTML += "Load time : " + (render.getTime()-debut.getTime())/1000 + "<br>";
        document.getElementById("log").innerHTML += "Render time : " + (fin.getTime()-render.getTime())/1000 + "<br>";
        });  
  tester.loadData();
});
</script>
</body>
</html>